﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ETADTools.Lib
{
  public abstract class FormBuilder
  {
    protected FormInfo Info;

    public FormBuilder(FormInfo info)
    {
      Info = info;
    }

    public void Build()
    {
      new TableScripBuilder(Info).Build();
      new ObjectScriptBuilder(Info).Build();
      new FieldGroupDatasourceScriptBuilder(Info).Build();
      new FieldGroupScriptBuilder(Info).Build();

      BuildSPs();

      BuildPage();
    }

    protected abstract void BuildSPs();
    protected abstract void BuildPage();
  }
}
